This document provides step-by-step instruction to demonstrate the Arch Rock 6LoWPan sample applications for the ATAVRRZRAVEN 2.4 GHz Evaluation and Starter Kit (ATAVRRZRAVEN henceforth).
The ATAVRRZRAVEN contains the following hardware:
Running the Arch Rock 6LoWPan sample application comprises of the following steps:
Each of the steps is detailed in the following sections.
Refer to the AVRRZUSBSTICK Setup Guide located at
Arch Rock/docs/UsbStick/
Refer to the AVRRZUSBSTICK Setup Guide located at
Arch Rock/docs/UsbStick/
The programming interface on the AVRRAVENx boards must be setup prior according to the procedure described in Refer to AVR2016: RZRAVEN Hardware User's Guide 3.11.1.
Note that each AVRRAVENx board requires two images, one for the Atmega 3290p processor, another for the Atmega 1284p processor. For the purposes of this exercise, you only need to setup one of the two AVRRAVEN boards.
All the images are located under:
Arch Rock/binaries/raven_telnet_shell/
This directory is organized by processor type, one sub directory for the atmega3290p processor, another for the atmega1284p processor
Currently we provide one sample application image under the processor subdirectory
Connect the JTAG programmer to the PC and connect the programming header to the rightmost header labeled 3290. Be sure the header is on in the correct orientation. Pin1 on the header should line up with the triangle marking on the board.
Power up your Raven board, either by external battery pack or the batteries included in the kit. We recommend that you start the programming process with fresh batteries.
Start AVR studio. You need not open a project. Select Program AVR from the Tools menu, as shown below:

Under the Main tab, Select JTAG mode and the Atmega3290p device. (Note, if you click Read Signature to verify the device it may report a WARNING: Signature does not match selected device.)

Under the Fuse tab, confirm the fuse settings. They should be:
Extended: 0xFF
High: 0x90
Low 0x62

Under the Program tab, check the boxes next to the Erase Device before programming and Verify Device after programming options.
In the flash section, browse to the Atmega3290p binary located at
Arch Rock/binaries/raven_telnet_shell/atmega3290p
Click the Program button.

Verify the programming succeeded with no error messages.
Detach the programming header
Connect the JTAG programmer to the PC and connect the programming header to the left header labeled 1284. Be sure the header is on in the correct orientation. Pin1 on the header should line up with the triangle marking on the board.
In the Main tab, Select JTAG mode and the 1284p device.
Power up your Raven board, either by external battery pack or the batteries included in the kit. We recommend that you start the programming process with fresh batteries.
Under the Fuse tab, confirm the fuse settings. They should be:
Extended: 0xFF
High: 0x90
Low 0xE2

Under the Program tab, check the boxes next to the Erase Device before programming and Verify Device after programming options.
In the flash section, browse to the appropriate Atmega1284p binary located under
Arch Rock/binaries/raven_telnet_shell/atmega1284p/
Click the Program button.

Verify the programming succeeded with no error messages.
Detach the programming header
Depending on what you have been doing previously, the Windows 6LoWPAN service may or may not be running. To check, right click on the My Computer icon and select Manage.

In the Computer Management window, click on the Services entry to reveal the currently running services. Right click on the Ach Rock 6LoWPAN service and select stop.

If the AVRRZUSBSTICK is already attached to the USB port; detach it, wait 5 seconds, and re-attach it.
The LED indicates that the AVRRZUSBSTICK is programmed.
Note: You may stop the service by right clicking on the name of the service and choose stop; or you may restart the service by right clicking on the name of the service and choose restart
This shows a management view into your 6LoWPAN network.

LoWPAN Channel = 26
LoWPAN ID = 34
If the settings shown in the browser do not match the above values, you may change them one of two ways:

You can also see your 6LoPWAN network in your Network Connections control panel.

You should see the Raven node join the 6LoWPAN network in the Routing Table tab.

Notice the IPv4 address of the node. Here is it 10.97.0.41.
Start a windows command console
Type telnet <ip address of mote>, the IP address of the mote can be found in the Routing Table page of the web GUI You are now logged into your Raven.

Type ? at the shell prompt to see the list of commands available
The IPv6 address that you see above is the link local address of the 6LoWPAN router.

Since Arch Rock mesh networks are IP based, not only can one use standard tools such as ping and telnet to interact with nodes in the network, one can also use standard diagnostic tools such as wireshark to debug the network.
The above screenshot shows the packet capture of a telnet session and a series on pings from a Windows machine to a Raven board. One simply has to install wireshark and start capture on “MS Loopback Interface”.
The AVRRZUSBSTICK must be flashed with the correct image and inserted in the USB port. The blue LED on the AVRRZUSBSTICK will turn on when the hardware is functioning correctly. The Arch Rock 6LoWPAN Windows Service must be started after the blue LED is on.
Note that out of the box the AVRRZUSBSTICK does not have the Arch Rock image flashed.
The Arch Rock 6LoWPAN Windows Service must be restarted after the AVRRZUSBSTICK has been detached from the USB port.
The proper way to reset the AVRRZUSBSTICK and Arch Rock 6LoWPAN Windows Service is to:
Make sure the Arch Rock 6 LoWPAN Windows Service is started and the correct image for AVRRZUSBSTICK has been flashed on the hardware. The blue LED on the AVRRZUSBSTICK must be lit.
Restart the Arch Rock 6LoWPAN Windows Service, as described in section 3.1.2
Make sure that the channel and PAN ID shown in the management GUI matches the channel and PAN ID set in the AVRRAVENx firmware.
If you have more than one raven kit, make sure only one AVRRZUSBSTICK is on one channel at a time.
Under the “Routing Table” tab in the management GUI, click on “Rebuild Routing Tree” to restore connectivity.
Please visit http://support.archrock.com/asd for technical support and updates.